package com.zhiwu.uhf.data;

import com.zhiwu.uhf.entity.BeanInfo;
import com.zhiwu.uhf.entity.ComparedInfo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class PublicData {

    //存放接口3获取的当前线路 key=route_code value=匹配的箱号 key=箱号 value是否匹配 1=匹配 0=未匹配
    public static Map<String, Map<String, Integer>> routeMap = new HashMap<>();


    //存放接口4获取的可回收数据key=route_code value=箱号的map key=箱号 value=“1”
    public static Map<String, Map<String, Integer>> recyclableMap = new HashMap<>();

    //存放接口4获取的可回收数据 箱号和线路的对应关系 key=箱号 value=route_code
    public static Map<String, String> epcMap = new HashMap<>();
    //保存线路code和name的关系
    public static Map<String, String> routeCodeNameMap = new HashMap<>();

    //专门保存已经扫描过的箱号 key=箱号 value=“1” 每次开启扫描清空 1=已匹配 0=未匹配
    public static Map<String, Integer> comparedMap = new ConcurrentHashMap<>();

    //存放所有已经识别的线路和箱号信息 container
    public static List<ComparedInfo> comparedList = new ArrayList<>();
    //存放已经匹配的线路和箱号信息 container
    public static List<ComparedInfo> comparedGreenList = new ArrayList<>();


    //存放选择的线路信息
    public static List<BeanInfo.Data> checkedList = new ArrayList<>();
    //存放选择的线路信息
    public static Map<String, String> checkedMap = new HashMap<>();
}
